#include "Sequence.h"
#include "metric.h"

namespace Math {

  namespace Sequence {

    void Append(VectorSequence& S,const Vector& x)
    {
      S.push_back(x);
    }

    Real CauchyEpsilon(const VectorSequence& S)
    {
      if(S.size() <= 1) return Zero;
      size_t n=S.size()-1;
      return Distance_L2(S[n],S[n-1]);
    }

  } //namespace Sequence

} //namespace Math

